<%-- ExMobi JSP文件，注释和取消快捷键统一为Ctrl+/ 多行注释为Ctrl+Shift+/ --%>
<%@ page language="java" import="java.util.*,java.io.*"
 contentType="application/uixml+xml; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/client/adapt.jsp"%>
<%
	//得到客户端上传的图片路径，服务端会自动把上传的图片存在一个临时路径下
	String id = aa.req.getParameter("id");
    System.out.println(" id ="+id);
	List<String> pathlist = aa.req.getAttachAddrs("imgfile");
    List<String> namelist = aa.req.getAttachNames("imgfile");
    System.out.println(" file count ="+pathlist.size());
	//业务服务器地址
	String businessUrl = "http://172.16.4.74:8080/BLBE/sqlLite/uploadImg";
%>
<aa:http keepreqdata="false" method="post" url="<%=businessUrl%>" enctype="multipart/form-data">
  <aa:param name="id" value="<%=id%>"/>
  <% 
  int i = 0;
  for(String filepath:pathlist){ 
    String name = namelist.get(i);
    i++;
  %>
  <aa:param name="<%=name%>" filepath="<%=filepath%>"/>
  <% } %>
</aa:http>
<%
  //业务返回结果转发
  String json=aa.regex.regex(".*");
  out.print(json.toString());
%>